
#ifndef PREFERENCES_H
#define PREFERENCES_H

//{{{ file documentation -------------------------------------------------------

/*!
 * @file     preferences.h
 * @brief    dicodor preferences window class declaration
 */

//}}} --------------------------------------------------------------------------
//{{{ includes / predeclarations -----------------------------------------------

// @(#) $Id:$

#include "tools.h"
#include "config.h"
#include "colorselectbutton.h"

#include <QtGui/QDialog>
#include <QtGui/QMessageBox>


//}}} --------------------------------------------------------------------------
//{{{ namespace Ui -------------------------------------------------------------

namespace           Ui
{
	class           Preferences;
}

//}}} --------------------------------------------------------------------------
//{{{ structures ---------------------------------------------------------------
//}}} --------------------------------------------------------------------------
//{{{ .Preferences -------------------------------------------------------------

class Preferences :     public QDialog
{
	Q_OBJECT

private:
	void	initIcons ();
	void	initGui ();
	void	initFields ();
	void	initConnect ();
public:
	explicit            Preferences (QWidget * parent = 0);
	virtual             ~Preferences();

protected:
	void                changeEvent( QEvent * e );

private slots:
	void                on_Ok_clicked();
	void				onRemoveLineFromPersonalDic ();
	void				onRemoveLineFromTranslatelDic ();
	void				onClearPersonalDic ();

private:
	Config				* m_config;
	Ui::Preferences		* ui;
	ColorSelectButton	* m_csButton;
};

//}}} --------------------------------------------------------------------------

#endif // PREFERENCES_H

